<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="lib/react.development.js"></script>
	<script src="lib/react-dom.development.js"></script>
	<script src="lib/babel.min.js"></script>
</head>
<body>
<button>点我</button>
<div id="app"></div>
</body>
<script type="text/babel">
	const root = ReactDOM.createRoot(document.querySelector("#app"));
	const btn = document.querySelector("button");
	let isShow = true;
	initRender();
	btn.onclick = function(){
		isShow = !isShow;
		initRender();
	}
	function initRender(){
		root.render((
			<div style={{
				width:"200px",
				height:"200px",
				background:"red",
				color:"green",
				display:isShow?"block":"none"
			}}>现在我一点也不累 ！</div>
		));
	}
	
	
</script>
</html>